using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
using WL.Think.Abp;
using WL.Think.Abp.Modules;

namespace WL.Think.Sample;

[DependsOn(
    typeof(SampleIAppModule),
    typeof(SampleDataModule)
)]
public class SimpleDbMigratorModule : ThinkAbpDbMigratorModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        base.ConfigureServices(context);
        context.Services.AddTransient<IThinkDbSchemaMigrator, SampleDbSchemaMigrator>();
        context.Services.AddAbpDbContext<SampleDbMigratorDbContext>();
    }
}
